package router

import (
	"course/handler/service"
	"github.com/gin-gonic/gin"
)

func Router() *gin.Engine {
	r := gin.Default()
	r.POST("/addSlot", service.AddSlot)
	r.POST("/upload", service.Upload)
	r.GET("/getCourse", service.GetCourse)
	r.GET("/delCourse", service.DelCourse)
	r.GET("/chat", service.Chat)
	return r
}
